package com.testword.mappers;

import com.testword.entity.dto.UserDto;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Mapper
 */
public interface RecordMapper<T, P> extends BaseMapper {

	/**
	 * 根据StudentId查询
	 */
	T selectByStudentId(@Param("studentId") String studentId);

	/**
	 * 根据StudentId修改
	 */
	Integer updateByStudentId(@Param("bean") T t, @Param("studentId") String studentId);

	/**
	 * 根据StudentId删除
	 */
	Integer deleteByStudentId(@Param("studentId") String studentId);

	List<UserDto> selectListByTwoTable(@Param("query") P p);
}